package org.example.blog_system.model;

import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

@Data
public class BlogInfo {
    private Integer blogId ;
    private String title ;
    private String content ;

    public String getContent() {
        return content;
    }

    private Integer userid ;
    private Date postTime ;

    public String getPostTime() {
         SimpleDateFormat ft = new SimpleDateFormat("yyyy-mm-dd hh:mm");
        return ft.format(postTime);
    }

//    private String author ;
}
